<?php
    include('./library/conn.php');

    $id=$_REQUEST['id'];

    $select="select * from product where id = $id";

    $res=$mysqli->query($select);

    $mysqli->close();

    $row=$res->fetch_assoc();

    $json=json_encode($row);
    
    echo $json;    
?>